/*********************************************************
          File Name:pisces_socket.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun 26 Apr 2015 03:22:48 PM CST
**********************************************************/

#ifndef PISCES_SOCKET_H_
#define PISCES_SOCKET_H_

#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netdb.h>
#include "global.h"

int pisces_socket(pisces_ctx_t ctx, socklen_t * addr_len);

int pisces_unblock_socket(int sfd);

#endif
